<?php

namespace App\Http\Requests\Order;

use App\Http\Requests\ApiRequest;

/**
 * @property string order_product_id
 */
class ReturnProductIndexRequest extends ApiRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'order_product_id' => 'nullable|int|min:1',
        ];
    }
}
